#include "mainwidget.h"
#include "TarsThreadPool.h"
#include <QApplication>
#undef main

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    // 创建线程池
    TarsThreadPool::getInstance().init(THREAD_MAX_NUM);
    TarsThreadPool::getInstance().start();

    MainWidget w;
    w.show();

    return a.exec();
}
